package io.renren.modules.picApproval.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.picApproval.dao.MediaFileDao;
import io.renren.modules.picApproval.entity.MediaFileEntity;
import io.renren.modules.picApproval.service.MediaFileService;



@Service("mediaFileService")
public class MediaFileServiceImpl implements MediaFileService {
	@Autowired
	private MediaFileDao mediaFileDao;
	
	@Override
	public MediaFileEntity queryObject(Long mediaId){
		return mediaFileDao.queryObject(mediaId);
	}
	
	@Override
	public List<MediaFileEntity> queryList(Map<String, Object> map){
		return mediaFileDao.queryList(map);
	}

	@Override
	public void mediaProcess(MediaFileEntity mediaFile) { mediaFileDao.mediaProcess(mediaFile);}

	@Override
	public List<MediaFileEntity> queryListByShootId(String shootId) {
		return mediaFileDao.queryListByShootId(shootId);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return mediaFileDao.queryTotal(map);
	}
	
	@Override
	public void save(MediaFileEntity mediaFile){
		mediaFileDao.save(mediaFile);
	}
	
	@Override
	public void update(MediaFileEntity mediaFile){
		mediaFileDao.update(mediaFile);
	}
	
	@Override
	public void delete(Long mediaId){
		mediaFileDao.delete(mediaId);
	}
	
	@Override
	public void deleteBatch(Long[] mediaIds){
		mediaFileDao.deleteBatch(mediaIds);
	}
	
}
